﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="TimeTotal.aspx.cs" Inherits="TimeWork.report.general.TimeTotal" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Bredcrumb" runat="server">
    <li><a href="#" class="report">Báo cáo</a></li>>
    <li><a href="#">Thời gian sử dụng phân theo sản phẩm, loại thời gian (tháng/năm)</a></li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="FormTotalMonth" runat="server">
        <asp:ScriptManager ID="ScriptManager" runat="server">
        </asp:ScriptManager>
        <div class="excel print" style="width: 100%;text-align: right;">
            <asp:ImageButton ID="btnExportExcel" runat="server" 
                ImageUrl="~/resources/img/icons/excel.png" ToolTip="Xuất ra Excel" onclick="btnExportExcel_Click" 
                 />&nbsp;<asp:ImageButton ID="btnXml" runat="server" ImageUrl="~/resources/img/icons/xml.png" ToolTip="Xuất ra XML" />&nbsp;<asp:ImageButton ID="btnPrint" runat="server" ImageUrl="~/resources/img/icons/print.png" ToolTip="In báo cáo" OnClientClick="window.print()" />
        </div>

        <div class="project report1">
            <table>
                <tr>
                    <th class="header" colspan="2">Kỳ báo cáo tháng, năm</th>
                </tr>
                <tr>
                    <td class="tdLabel" style="width: 85px;padding-top: 20px;">Kỳ báo cáo:</td>
                    <td>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                            <div class="bounder">
                                <asp:RadioButton ID="rbMonth" runat="server" Text=" Báo cáo theo tháng" 
                                    GroupName="Type" AutoPostBack="True" 
                                    oncheckedchanged="rbMonth_CheckedChanged" Width="140px"/>
                                &nbsp;
                                <asp:DropDownList ID="ddlYear" runat="server">
                                    <asp:ListItem Value="2012" Text="2012"></asp:ListItem>
                                    <asp:ListItem Value="2013" Text="2013"></asp:ListItem>
                                    <asp:ListItem Value="2014" Text="2014"></asp:ListItem>
                                    <asp:ListItem Value="2015" Text="2015"></asp:ListItem>
                                </asp:DropDownList>&nbsp;
                                <asp:DropDownList ID="ddlMonth" runat="server">
                                    <asp:ListItem Value="1" Text="1"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="2"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="3"></asp:ListItem>
                                    <asp:ListItem Value="4" Text="4"></asp:ListItem>
                                    <asp:ListItem Value="5" Text="5"></asp:ListItem>
                                    <asp:ListItem Value="6" Text="6"></asp:ListItem>
                                    <asp:ListItem Value="7" Text="7"></asp:ListItem>
                                    <asp:ListItem Value="8" Text="8"></asp:ListItem>
                                    <asp:ListItem Value="9" Text="9"></asp:ListItem>
                                    <asp:ListItem Value="10" Text="10"></asp:ListItem>
                                    <asp:ListItem Value="11" Text="11"></asp:ListItem>
                                    <asp:ListItem Value="12" Text="12"></asp:ListItem>
                                </asp:DropDownList></div>
  
                                <div class="bounder">
                                <asp:RadioButton ID="rbYear" runat="server" Text=" Báo cáo theo năm" 
                                    GroupName="Type" AutoPostBack="True" oncheckedchanged="rbYear_CheckedChanged" 
                                        Width="140px"/>
                                &nbsp;
                                <asp:DropDownList ID="ddlTimeYear" runat="server">
                                    <asp:ListItem Value="2012" Text="2012"></asp:ListItem>
                                    <asp:ListItem Value="2013" Text="2013"></asp:ListItem>
                                    <asp:ListItem Value="2014" Text="2014"></asp:ListItem>
                                    <asp:ListItem Value="2015" Text="2015"></asp:ListItem>
                                </asp:DropDownList>
                                </div>
                            </ContentTemplate>           
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td class="tdLabel" style="width: 92px;" valign="top">Mã cấp công việc:</td>
                    <td valign="top" colspan="2">

                        <asp:DropDownList ID="ddlCode" runat="server" style="margin-top: 3px;">
                            <asp:ListItem Value="1" Text="Cấp 1"></asp:ListItem>
                            <asp:ListItem Value="2" Text="Cấp 2"></asp:ListItem>
                            <asp:ListItem Value="3" Text="Cấp 3"></asp:ListItem>
                        </asp:DropDownList>
                       
                        &nbsp;<asp:CheckBox ID="cbIsChild" runat="server" 
                            Text="Hiện sản phẩm cấp dưới" />
                       
                    </td>
                </tr>
                
                <tr>
                    <td colspan="2" align="right">
                        <asp:Button ID="btnGenerate" runat="server" Text="Tạo báo cáo" 
                            CssClass="mybutton" onclick="btnGenerate_Click" />
                    </td>
                </tr>
            </table>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                <ProgressTemplate>
                    <div class="loading">
                        <img src="../../resources/img/icons/loading.gif" style="width: 31px; height: 31px" alt="Loading" /><br />
                        Đang xử lý 
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnGenerate" EventName="Click" />
                </Triggers>
                <ContentTemplate>
                    <center style=" padding: 10px 0px; "><asp:Label ID="lblData" runat="server" Font-Bold="True" Font-Italic="True" 
                        ForeColor="Maroon"></asp:Label></center>
                    <asp:Literal ID="ltrData" runat="server"></asp:Literal>
                </ContentTemplate>
            </asp:UpdatePanel>
            
        </div>
    </form>

</asp:Content>
